package com.gopay.common.cps.dao.cbrmb.impl;

import java.util.List;

import org.springframework.stereotype.Repository;

import com.gopay.common.base.dao.impl.BaseDAOImpl;
import com.gopay.common.cps.dao.cbrmb.CbRmbTranAssistDtlDao;
import com.gopay.common.domain.cbrmb.CbRmbTranAssistDtl;
@Repository(value = "cbRmbTranAssistDtlDao")
public class CbRmbTranAssistDtlDaoImpl extends BaseDAOImpl<CbRmbTranAssistDtl,Integer> implements CbRmbTranAssistDtlDao {

	@Override
	public CbRmbTranAssistDtl findByGopayOrderId(String orderId) {
		// TODO Auto-generated method stub
		
		String hql = " select m from CbRmbTranAssistDtl m where m.gopayOrderId = '"
				+ orderId + "'";
		List<CbRmbTranAssistDtl> ss = findByHql(hql);
		return (null == ss || 0 == ss.size()) ? null : ss.get(0);
		
		

	}
	
	
	
}
